
for i in range(0,101):
    for j in range(0,101):
        for k in range(0,101):
            if  k%3==0 and 5*i + 3*j + k//3 == 100 and i+j+k==100:
                print(f"公鸡:{i}只，母鸡:{j}，小鸡：{k}只")